<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>注册页面</title>
  <link rel="stylesheet" href="./css/regist.css">
  <script src="./js/regist.js"></script>
  <style>

  </style>
</head>

<body>
  <div class="container">
    <h2>注册新用户</h2>
    <div class="form-group">
      <label for="phone_number">手机号:</label>
      <input type="text" id="phone_number" name="phone_number" required pattern="[0-9]{11}" title="请输入有效的11位手机号">
      <div class="error-message">请输入有效的11位手机号</div>
    </div>
    <div class="form-group">
      <label for="password">密码:</label>
      <input type="password" id="password" name="password" required pattern="^[a-zA-Z0-9_]{6,16}$"
        title="密码只允许包含数字、大小写字母和下划线，长度为6~16位">
      <div class="error-message">密码只允许包含数字、大小写字母和下划线，长度为6~16位</div>
    </div>
    <div class="form-group">
      <label for="confirm-password">确认密码:</label>
      <input type="password" id="confirm-password" name="confirm-password" required>
      <div class="error-message">确认密码需要和密码一致</div>
    </div>
    <div class="form-group">
      <div class="button-group">
        <button id="regist" type="button">注册</button>
      </div>
    </div>
  </div>

  <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
  <script>


  </script>
</body>

</html>